package com.linhh.mall.center.api;

import com.github.pagehelper.PageInfo;
import com.linhh.mall.center.common.dto.OrderCount;
import com.linhh.mall.center.common.dto.OrderTimeDataDto;
import com.linhh.mall.center.common.pojo.OrderItem;
import com.linhh.mall.center.common.pojo.OrderDelivery;
import com.linhh.mall.center.common.pojo.SubOrderInfo;
import org.apache.dubbo.config.annotation.Service;
import java.util.List;
import java.util.Map;

/**
 * @Author linhh
 * @Date 2023 01 12 00 59
 **/
@Service
public interface OrderInfoService {

    /**
     * 查询所有
     * @param shopId
     * @param orderStatus
     * @param page
     * @param size
     * @return
     */
    PageInfo<SubOrderInfo> queryAll(Long shopId, Integer orderStatus, Integer page, Integer size);

    /**
     * 获取详情信息
     * @param id
     * @return
     */
    List<OrderItem> getDetailInfo(Long id);

    /**
     * 获取交付信息
     * @param id
     * @return
     */
    OrderDelivery getDeliveryInfo(Long id);

    /**
     * 查询所有信息
     * @return
     */
    List<SubOrderInfo> selectAll();

    /**
     *
     * @param shopId
     * @return
     */
    OrderTimeDataDto orderTimeDate(Long shopId);

    /**
     *
     * @param shopId
     * @return
     */
    OrderCount getOrderCount(Long shopId);

    /**
     *
     * @param shopId
     * @return
     */
    Map<String,Object> chartCount(Long shopId);
}
